Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Avoid captcha problem and more ! #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

odannis
Copy link

@odannis odannis commented Sep 25, 2022

This allows to avoid some captcha problem if the two cookies : __Secure-refresh-account-token, datadomeare well configured.

The cookies obtained from a request with __Secure-refresh-account-token will allow us to book ticket also !!

@sonarcloud
Copy link

sonarcloud bot commented Sep 25, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@odannis odannis mentioned this pull request Sep 25, 2022
@corentios
Copy link

corentios commented Nov 22, 2022

Hello @odannis, how do you obtain the __Secure-refresh-account-token ?
I have only datadome in my cookies with the POST | https://www.sncf-connect.com/bff/api/v1/itineraries

Maybe it had changed ?

@odannis
Copy link
Author

odannis commented Dec 1, 2022

You need to be connected to see this token, it is actualized after each request POST | https://www.sncf-connect.com/bff/api/v1/web-refresh/reauthenticate and corresponds more or less to your password.

If you inspect the sncf-connect webpage on firefox (right click + inspecter), two choices :

  1. you can go in the "Stockage" onglet, than "Cookie" on the right, than "https://sncf-connect.com". And here you will find the cookie __Secure-refresh-account-token
  2. You inspect the request POST | https://www.sncf-connect.com/bff/api/v1/itineraries but you need to be connected with your personal account.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants